![]() |
PATH![]() |
![]() ![]() |
The Appearance Manager defines the type for an application-defined tab title drawing function as follows:
typedef pascal (void, ThemeTabTitleDrawProcPtr) (
const Rect *bounds,
ThemeTabStyle style,
ThemeTabDirection direction,
SInt16 depth,
Boolean isColorDev,
UInt32 userData);
The Appearance Manager defines the data type ThemeTabTitleDrawUPP to identify the universal procedure pointer for an application-defined tab title drawing function:
typedef ThemeTabTitleDrawProcPtr ThemeTabTitleDrawUPP;
You typically use the NewThemeTabTitleDrawProc macro like this:
ThemeTabTitleDrawUPP myThemeTabTitleDrawUPP;
myThemeTabTitleDrawUPP = NewThemeTabTitleDrawProc(MyThemeTabTitleDrawProc);
You typically use the CallThemeTabTitleDrawProc macro like this:
CallThemeTabTitleDrawProc(myThemeTabTitleDrawUPP, bounds, style, direction,
depth, isColorDev, userData);
To implement your own tab title drawing function, see MyThemeTabTitleDrawProc . The ThemeTabTitleDrawProcPtr type is available with Appearance Manager 1.1 and later.